package com.bwie.controller;

import com.bwie.service.TbDeliveryService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/delivery/index")
public class IndexController {
    @Resource
    TbDeliveryService tbDeliveryService;

    @PostMapping("/getDeliveryList")
    public R getDeliveryList(@RequestBody PageInfoVo pageInfoVo){
        return tbDeliveryService.getDeliveryList(pageInfoVo);
    }
}
